package com.design.model;

/**
 * 牛奶装饰器
 *
 * @author lw
 * @date 2023/12/4 14:36
 **/
public class MilkDecorator extends CoffeeDecorator{
    public MilkDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double cost() {
        return super.cost() + 1.0;
    }

    @Override
    public String description() {
        return super.description() + "加奶";
    }
}
